#region "DirectoryNotFoundExceptionWrapper"

/*
 * ####     Developer Name : Wang Yucai
 * 
 * ####     Development Tool : Microsoft VisualStudio 2010 Ultimate Edition
 * 
 * ####     Create Time : 2014/7/7 15:19:10
 * 
 * ####     Namespace : Masterduner.SourceStudio.Practices.DevelopmentLibrary.IO
 * 
 * ####     Type Name : DirectoryNotFoundExceptionWrapper
 * 
 * ####     Full Name : Masterduner.SourceStudio.Practices.DevelopmentLibrary.IO.DirectoryNotFoundExceptionWrapper
 * 
 * ####     Machine Name : GLCHQWYCWINW7
 * 
 * ####     UserName : GUOCOLAND/wangyucai
 * 
 * ####     CLR Version : 4.0.30319.1022
 * 
 * ####     Target Framework Version : 4.0
 */

#endregion

using System;
using Masterduner.SourceStudio.Practices.DevelopmentLibrary.Resources;

namespace Masterduner.SourceStudio.Practices.DevelopmentLibrary.IO
{
    /// <summary>
    /// <para>Masterduner.SourceStudio.Practices.DevelopmentLibrary.IO.DirectoryNotFoundExceptionWrapper</para>
    /// <para>
    /// 未找到指定的目录路径。
    /// </para>
    /// </summary>
    /// <remarks>
    /// <para>Target Framework Version : 4.0</para>
    /// <para>此类不可继承。</para>
    /// </remarks>
    [Serializable]
    public sealed class DirectoryNotFoundExceptionWrapper : ExceptionWrapper
    {
        private string _directoryPath;

        #region DirectoryPath
        /// <summary>
        /// 获取未找到的目录路径。
        /// </summary>
        public string DirectoryPath
        {
            get { return _directoryPath; }
            private set { _directoryPath = value; }
        }
        #endregion

        #region Constructor

        /// <summary>
        /// <para>构造函数：</para>
        /// <para>初始化一个<see cref="DirectoryNotFoundExceptionWrapper" />对象实例。</para>
        /// </summary>
        /// <param name="directory">未找到的目录路径。</param>
        /// <param name="innerException">引发了此次异常的<see cref="Exception"/>对象实例。</param>
        public DirectoryNotFoundExceptionWrapper(string directory, Exception innerException)
            : base(
                "MDSS::DEVLIB::00000005",
                string.Format("{0}({1})", ExceptionMessageCollections.DirectoryNotFoundException, string.Format(ExceptionDescriptionCollections.DirectoryPath, directory)),
                innerException
            )
        {
            this.DirectoryPath = directory;
        }

        /// <summary>
        /// <para>构造函数：</para>
        /// <para>初始化一个<see cref="DirectoryNotFoundExceptionWrapper" />对象实例。</para>
        /// </summary>
        /// <param name="directory">未找到的目录路径。</param>
        public DirectoryNotFoundExceptionWrapper(string directory)
            : this(directory, null)
        {
        }

        #endregion
    }
}

#region README

/*
 * ####     ©2014 Wang Yucai
 * 
 * ####     Contact me
 *                  
 *                  E-mail : Masterduner@Yeah.net
 *                  Mobile : 13621384677
 *                  QQ : 180261899
 */

#endregion